#include <cascade/util/CascadeArray.h>
Inheritance diagram for CascadeTemplateArray< T >:
Public Member Functions | |
CascadeTemplateArray (u32 inDesiredItemCount=0) | |
virtual | ~CascadeTemplateArray () |
virtual bool | Append (void *inItem, u32 &outIndex) |
virtual bool | Insert (void *inItem, u32 &ioIndex) |
virtual bool | Remove (void *inItemToRemove) |
virtual bool | FetchItem (u32 inIndex, void *outItem) const |
virtual bool | Append (T &inItem, u32 &outIndex) |
virtual bool | Insert (T &inItem, u32 &ioIndex) |
virtual bool | Remove (T &inItemToRemove) |
virtual bool | FetchItem (u32 inIndex, T &outItem) const |
virtual bool | AppendArray (const CascadeTemplateArray< T > &inArray) |
virtual bool | InsertArray (CascadeTemplateArray< T > &inArray, u32 inIdx) |
Template-ized array of objects or types. Basically a template wrapper to CascadeArray, for more convenient syntax
|
constructor Construct the array. Optional argument specifies the initial size of the array
|
|
destructor destructor |
|
append an item to the array Append the supplied item to the array. This may fail because memory may have to be allocated to hold the new item. The index of the newly-appended item is returned in the outIndex parameter if the append was successful
|
|
Implementation function. do not call this function. Use the templated version instead. Reimplemented from CascadeArray. |
|
Append a complete array to this one Appends the complete contents of another array of type T to this array.
|
|
return a copy of the item at index Returns a copy of the item at the supplied index. May fail if the index is invalid
|
|
Implementation function. do not call this function. Use the templated version instead. Reimplemented from CascadeArray. |
|
insert an item into the array Insert the supplied item into the array. This may fail because memory may have to be allocated to hold the new item. The index of the newly-inserted item is returned in the ioIndex parameter if the insertion was successful
|
|
Implementation function. do not call this function. Use the templated version instead. Reimplemented from CascadeArray. |
|
Insert a complete array into this one Inserts the complete contents of another array of type T to this array.
|
|
remove an item Removes the given item from the array. If the item cannot be found in the array, nothing happens
|
|
Implementation function. do not call this function. Use the templated version instead. Reimplemented from CascadeArray. |